package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by olga on 8/06/14.
 */
public class TerminalReadUtility
{
    public static String getUserInput(BufferedReader reader, String message) throws IOException
    {
        TerminalPrintUtility.printString(message);
        return reader.readLine().trim();
    }

    public static String getUserInput( String message ) throws IOException
    {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        TerminalPrintUtility.printString(message);
        return reader.readLine().trim();
    }

    public static BufferedReader getBufferedReader()
    {
        return new BufferedReader(new InputStreamReader(System.in));
    }
}
